/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gradleshell.shell.cmds;

import org.gradleshell.shell.gradle.ICommandService;

/**
 *
 * @author jxcommerce<g2commerce@gmail.com>
 */
public class GradleAppRunner extends Thread{
    ICommandService commandService;
    String[] jvmArgs;

    public GradleAppRunner(ICommandService commandService, String[] jvmArgs) {
        this.commandService = commandService;
        this.jvmArgs = jvmArgs;
    }
    
    
    @Override
    public void run() {
        commandService.runApp(jvmArgs);
    }
    
}
